package com.ct.boss.demo.service;

import com.ct.boss.demo.model.SysUser;
import com.ct.boss.demo.page.PageRequest;
import com.ct.boss.demo.page.PageResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ChenTong
 * @version 1.0
 * @description 用户管理业务接口
 * @date 2020/6/15 17:27
 * @modified
 **/
@Transactional
public interface UserService extends CurdService<SysUser>{
    
    /**
     * @description 用户登录接口
     * @author ChenTong
     * @param user SysUser登录用户
     * @return int
     * @date 2020/6/16 17:30
     */
    SysUser login(SysUser user);


    /**
     * @description 获取用户列表分页结果
     * @author ChenTong
     * @param pageRequest
     * @return com.ct.boss.demo.page.PageResult
     * @date 2020/6/17 7:37
     */
    PageResult findPage(PageRequest pageRequest);
}
